package service.impl;

import java.util.ArrayList;
import java.util.List;

import pojo.Customer;
import service.CustomerManager;

public class CustomerManagerImpl implements CustomerManager{
	private List<Customer> customerlist;
	
	public CustomerManagerImpl(){
		customerlist = new ArrayList<Customer>();
	}
	
	
	@Override
	public synchronized Customer add(Customer c) {
		customerlist.add(c);
		return c;
	}

	@Override
	public synchronized List<Customer> getlist() {
		return customerlist;
	}
	
}
